#!/bin/sh
if [ $# != 1 ] ; then
    echo "param is invalid."
    echo "ex: $0 version"
    exit 1
fi
version=$1
dt=`date "+%Y%m%d"`

git tag -a ${version}.${dt} -m "${dt}"
git push origin --tags

